/**
 * 描述：详情公共组件样式
 * 公司：xxx有限公司
 * 版权：xxx2020
 * 作者：oyjl
 * 时间：2020-04-27 09:08:12
 */

// 主体样式
.main {
  background-color: #f5f5f9;
  margin: 0;
  .top {
    padding: 8px 16px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    i:hover {
      cursor: pointer;
      box-shadow: 1px 1px 4px #aaa;
    }
  }
  .head {
    padding: 8px 0;
    margin: 0 8px;
    span:nth-child(3) {
      float: right;
      color: #008000;
    }
  }
  > div.content {
    overflow-y: auto;
    height: calc(100vh - 90px);
    .fragment {
      background-color: #fff;
      padding: 8px 0;
      margin-bottom: 12px;
      border-top: 1px solid #eee;
      border-bottom: 1px solid #eee;
      .head {
        padding: 8px 0;
        > span:nth-child(1)::before {
          content: "*";
          background-color: #00a98f;
          color: transparent;
          margin-right: 4px;
        }
        > span:nth-child(3) {
          float: right;
          color: #008000;
        }
        > div {
          float: right;
          margin: 0 8px;
        }
      }
      .content {
        p {
          margin: 0 8px;
        }
        p > span:nth-child(1) {
          color: #888;
        }
        table {
          width: 100%;
          .index {
            width: 36px;
            text-align: center !important;
          }
          td:nth-child(3) {
            width: 60px;
            text-align: center !important;
          }
        }
      }
    }
  }
  .button-groups {
    display: flex;
    justify-content: center;
    padding: 6px 0 4px;
    border-top: 1px solid #ddd;
    button {
      margin: 0 16px;
    }
  }
}
